<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="t" tagdir="/WEB-INF/tags"%>
<t:link />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>后台管理</title>
</head>


<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/static/admin/nav/nav.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/static/admin/nav/iconfont.css">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/static/admin/nav/nav.js"></script>


<body class="easyui-layout">
	<div
		data-options="region:'north',title:'header',split:true,noheader:true"
		style="height: 10%; background: #666; overflow-y: hidden;">
		<div class="logout" style="text-align: right;">
			您好!|<a href="${pageContext.request.contextPath}/ponal/logout">退出</a>
		</div>

	</div>
	<div
		data-options="region:'west',split:true,iconCls:'icon-world',title:'导航'"
		style="width: 250px; padding: 10px;">
		<div class="nav">
			<ul>
				<li class="nav-item"><a href="javascript:;"><i
						class="my-icon nav-icon icon_1"></i><span>权限管理</span><i
						class="my-icon nav-more"></i></a>
					<ul>
						<li
							onclick="addTab('用户管理','/user/user')"><a
							href="#"><span>用户管理</span></a></li>
						<!-- <li onclick="save('role')"><a href="javascript:;"><span>角色管理</span></a></li>
						<li onclick="save('permission')"><a href="javascript:;"><span>权限管理</span></a></li> -->
					</ul></li>
				<li class="nav-item"><a href="javascript:;"><i
						class="my-icon nav-icon icon_2"></i><span>简历管理</span><i
						class="my-icon nav-more"></i></a>
					<ul>
						<!-- <li onclick="save('person')"><a href="javascript:;"><span>基本信息</span></a></li> -->
						<li onclick="addTab('简历模块','/resume/cate')"><a href="javascript:;"><span>简历模块</span></a></li>
					</ul></li>
				<!-- <li class="nav-item"><a href="javascript:;"><i
						class="my-icon nav-icon icon_3"></i><span>字典管理</span><i
						class="my-icon nav-more"></i></a>
					<ul>
						<li onclick="save('dict')"><a href="javascript:;"><span>字典管理</span></a></li>
					</ul></li> -->
			</ul>
		</div>
	</div>
	<div id="main" class="easyui-tabs"
		data-options="region:'center',split:true,iconCls:'icon-world'">
		<div title="首页" style="padding: 20px; display: none;">欢迎您</div>
	</div>

</body>



<script>
	

	function addTab(title, url) {
		if ($('#main').tabs('exists', title)) {
			$('#main').tabs('select', title);
		} else {
			var addurl = '${pageContext.request.contextPath}'+url;
			var content = '<iframe scrolling="auto" frameborder="0"  src="'
					+ addurl+'" style="width:100%;height:100%;"></iframe>';
			$('#main').tabs('add', {
				title : title,
				content : content,
				closable : true
			});
		}
	}
</script>

<script>
//页面跳转到指定位置
/* function save(type) {
var content;
if ("user" == type) {
	content = '<iframe src="${pageContext.request.contextPath}/user/user" scrolling="auto" frameborder="0" style="width: 100%; height: 100%;"></iframe>';
}
if ("role" == type) {
	content = '<iframe src="${pageContext.request.contextPath}/role/role" scrolling="auto" frameborder="0" style="width: 100%; height: 100%;"></iframe>';
}
if ("permission" == type) {
	content = '<iframe src="${pageContext.request.contextPath}/permission/permission" scrolling="auto" frameborder="0" style="width: 100%; height: 100%;"></iframe>';
}
if ("person" == type) {
	content = '<iframe src="${pageContext.request.contextPath}/user/updateuser" scrolling="auto" frameborder="0" style="width: 100%; height: 100%;"></iframe>';
}
if ("resume_module" == type) {
	content = '<iframe src="${pageContext.request.contextPath}/resume/cate" scrolling="auto" frameborder="0" style="width: 100%; height: 100%;"></iframe>';
}
if ("dict" == type) {
	content = '<iframe src="${pageContext.request.contextPath}/dict/dict" scrolling="auto" frameborder="0" style="width: 100%; height: 100%;"></iframe>';
}
//$("#main").html(content);
addTab("选项卡", content);
} */
</script>

</html>